interface ApiObject {
    [key: string]: string;
}

const api: ApiObject = {
    login: "/api/login.do",  //登录
    logout: "/api/logout.do",  //退出

    navMenus: "/api/nav/menu.json",  //菜单
    route: "/api/route.json",  //查询路由

    uploadImg: "/api/upload/img.do",  //上传图片

    profileDetail: "/api/profile/detail.json",  //本人信息
    profileEditPassword: "/api/profile/edit/password.do",  //本人信息-修改密码

    userList: "/api/user/list.json",  //用户列表
    userAdd: "/api/user/add.do",  //用户-添加
    userOperate: "/api/user/operate.json",  //用户
    userDetail: "/api/user/detail.json",  //用户-详情
    userEdit: "/api/user/edit.do",  //用户-编辑
    userEditPassword: "/api/user/edit/password.do",  //用户-设置新密码
    userDel: "/api/user/del.do",  //用户-删除

    postList: "/api/post/list.json",  //岗位列表
    postAdd: "/api/post/add.do",  //岗位-添加
    postDetail: "/api/post/detail.json",  //岗位-详情
    postEdit: "/api/post/edit.do",  //岗位-编辑
    postDel: "/api/post/del.do",  //岗位-删除

    deptList: "/api/dept/list.json",  //部门列表
    deptAdd: "/api/dept/add.do",  //部门-添加
    deptDetail: "/api/dept/detail.json",  //部门-详情
    deptEdit: "/api/dept/edit.do",  //部门-编辑
    deptDel: "/api/dept/del.do",  //部门-删除

    menuList: "/api/menu/list.json",  //菜单列表
    menuTree: "/api/menu/menu.json",  //菜单树
    menuAdd: "/api/menu/add.do",  //菜单添加
    menuEdit: "/api/menu/edit.do",  //菜单编辑
    menuDetail: "/api/menu/detail.json",  //菜单详情
    menuDel: "/api/menu/del.do",  //菜单删除

    roleList: "/api/role/list.json",  //角色列表
    roleAdd: "/api/role/add.do",  //角色添加
    roleEdit: "/api/role/edit.do",  //角色编辑
    roleDetail: "/api/role/detail.json",  //角色-详情
    roleDel: "/api/role/del.do",  //角色-删除
    roleMenu: "/api/role/menu.json",  //角色-菜单
    roleMenuEdit: "/api/role/menu.do",  //角色-菜单-编辑保存

    logRequestList: "/api/log/request/list.json",  //日志列表

    systemServerIndex: "/api/system/server/index.json",  //服务器-基本信息

    systemOnline: "/api/online/list.json",  //在线用户
}

export default api